package org.dromara.authcode.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 订单对象 t_order
 *
 * @author Miles Meng
 * @date 2025-08-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_order")
public class TOrder extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 订单号
     */
    @TableId(value = "order_no")
    private Long orderNo;

    /**
     * 商品ID
     */
    private Long goodsId;

    /**
     * 点数
     */
    private Long points;

    /**
     * 订单金额;单位：分
     */
    private Long orderAmt;

    /**
     * 订单状态;UNPAY 未支付；PAYED 已支付；
     */
    private String orderStatus;

    /**
     * 订单时间
     */
    private Date orderTime;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 订单成功完成时间
     */
    private Date succTime;

    /**
     * 订单成功的支付流水ID
     */
    private Long succPayTransId;

    /**
     * 钱包流水ID
     */
    private Long walletFlowId;


}
